<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Contact extends CI_Controller {

	function __construct(){
		  parent::__construct();
		  if(!isset($_SESSION)): session_start(); endif;
		  $this->load->model('users_model');
		  $this->load->model('recipients_model');
		  $this->load->helper('myuser_helper');
	}

	public function index()
	{
		$data['title']= "Sign in My Life My Eulogy";
		$data['main_content'] = 'misc/contact_view';
		$data['bottom_ads'] = Myuser_helper::getAds('bottom',1);
		$data['sidebar_ads'] = Myuser_helper::getAds('sidebar',2);
		$this->load->view('includes/template', $data);
	}


	public function captcha_validate(){
	  $this->load->helper("captcha");
	  print_r(my_sessions());
	}

	function logout(){
		$this->session->sess_destroy();
		redirect('home');
	}


}// end of controller







